﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xaml;
using System.CodeDom;

namespace NeuroSpeech.XamlExtensions
{
    public class ClassModifierWriter : XamlDirectiveWriter
    {

        public ClassModifierWriter():base(XamlLanguage.ClassModifier)
        {

        }


        #region public override void  EndMember(XamlCodeContext context)
        public override void EndMember(XamlCodeContext context)
        {
            CodeTypeDeclaration type = context.Type;

            type.TypeAttributes = System.Reflection.TypeAttributes.Public;
            
            string[] values = (context.Peek.Value.Value as string).Split(',',' ','|');
            foreach (string value in values)
            {
                switch (value.ToLower())
                {
                    case "public":

                        break;
                    default:
                        break;
                }
            }
        }
        #endregion


    }
}
